﻿@{
    ViewBag.Title = "Cập nhật người dùng";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<form class="form" action="/User/Edit/@ViewBag.UserId" method="post" enctype="multipart/form-data">
    <fieldset>
    
        <div class="content">
	        <h2 class="app">        
		        <span class="viewtitle"><strong>Cập nhật người dùng</strong></span>
	        </h2>                
            <div class="title nomargin">
                <h3>Thông tin người dùng</h3>
            </div>
            <div class="panel rounded">
                <ul class="accordeon-tabs accordeon-2">
                    <li class="open">
                        <span class="panel">       
                            <div class="row">
                                <label>Tên trước</label>
                                <input type="text" class="text" name="FirstName" data-bind="value: FirstName" maxlength="50" />
                            </div>
                            <div class="row">
                                <label>Tên sau:</label>
                                <input type="text" class="text" name="LastName" data-bind="value: LastName" maxlength="50" />
                            </div>    
                            <div class="row">
                                <label>E-mail:</label>
                                <input type="text" class="text" name="Email" data-bind="value: Email" maxlength="100" />
                            </div>          
                                 
                            <div class="row">
                                <label>Mật khẩu:</label>
                                <input type="text" class="text" name="Password" data-bind="value: Password" maxlength="20" />
                            </div> 
                            <div class="row">
                                <label>Khóa</label>
                                <div class="groupinput">
                                    <input type="checkbox" name="IsLockedOut" data-bind="checked: IsLockedOut" />
                                </div>
                            </div>  
                        </span>
                    </li>
                </ul>   
                                  
                <!-- Bottom function -->
                <h3 class="centered-wbtn centered-wbtn-top save">
  			        <span class="left"><a href="/User" class="btn btn-cancel-small">cancel</a></span>
                    <span class="right"><a href="javascript:void(0)" class="btn btn-submit-small" data-bind="click: Submit">submit</a></span>
		        </h3>     
            </div>
        </div>
    </fieldset>
</form>

<script type="text/javascript">
    var data = @(Html.Raw(Json.Encode(Model)));
</script>
<script src="/Scripts/User/UserEdit.js" type="text/javascript"></script>